var webpack = require('webpack');
module.exports = {
  // 要引入webpack
  configureWebpack: {
    plugins: [
      new webpack.ProvidePlugin({
        'window.Quill': 'quill/dist/quill.js',
        'Quill': 'quill/dist/quill.js'
      }),
    ]
  },
  devServer: {
    proxy: {
      '/dev-api': {//只要是这个路径下的请求都会被代理到target中
        target: 'http://localhost:8888',
        pathRewrite: { '^/dev-api': '' }//路径重写：/dev-api路径将不会出现，如果改成'^/dev-api':'test'，则重写的路径/dev-api会变成test
      }
    }
  },
}
